-- GENERATED SPELL FOR [Surena Caledon] --


function spell0_881(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_881', 3000, 1)
end

function spell1_881(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_881', 0, 1)
end

function Sorts_881(pUnit, Event)
local choix_sorts_881 = math.random(0, 1)
if choix_sorts_881 == 0 then
pUnit:RegisterEvent('spell0_881', 1, 1)
end
if choix_sorts_881 == 1 then
pUnit:RegisterEvent('spell1_881', 1, 1)
end
end

function mob881_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_881', math.random(1500, 3000), 1)
end

function mob881_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob881_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob881_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(881, 1, 'mob881_Action')
RegisterUnitEvent(881, 2, 'mob881_Leave')
RegisterUnitEvent(881, 3, 'mob881_Kill')
RegisterUnitEvent(881, 4, 'mob881_Die')
